/*! \file hovertext.h	
	This is the header file for hovertext.cpp
	
	This contains the HoverText class
*/

#ifndef HOVER_TEXT_H
#define HOVER_TEXT_H

#include "container.h"
#include "listener.h"
#include "textarea.h"

/**
	\class HoverText

	This is the HoverText class. It is a singleton since only one instance of it
	would ever exist at a time.
	
	IT DOES NOT HAVE A PARENT!
	
	When it is being used, it must be setVisible, and when it is not used, it is set
	invisible.
	
	The GUI will always draw this on top of everything else, but this can never have the focus.

*/
class HoverText : public Container, public Listener {
private:
	TextArea text;
	static HoverText* instance;
	HoverText();
public:
	static HoverText* getInstance();
	
	void setText( string text );
	
	string getText();
	
	virtual void onSize( Event e );
		
	void layout();
	
	bool canHaveFocus();
};

#endif
